package com.example.spring.ai.generator;

import org.springframework.ai.reader.JsonMetadataGenerator;

import java.util.Map;

public class ShopJsonMetadataGenerator implements JsonMetadataGenerator {
    @Override
    public Map<String, Object> generate(Map<String, Object> jsonMap) {
        return Map.of("sku_id", jsonMap.get("sku_id"),
                "brand_id", jsonMap.get("brand_id"),
                "price", jsonMap.get("price"));
    }
}
